<template>
  <div class="comment-list">
    <van-cell title="全部评论">{{list.length}}</van-cell>
    <van-list>
      <comment-item
        v-for="(comment, index) in list"
        :key="index"
        :comment="comment"
      />
    </van-list>
  </div>
</template>

<script>
import CommentItem from './comment-item'
export default {
  components: {
    CommentItem
  },
  props: {
    list: {
      type: Array,
      default: () => []
    }
  },
  data () {
    return {}
  },
  computed: {},
  watch: {},
  created () {},
  mounted () {},
  methods: {}
}
</script>

<style scoped lang="less"></style>
